<%--
  Created by IntelliJ IDEA.
  User: flower
  Date: 2022/9/20
  Time: 10:15
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ page isELIgnored="false"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<%--1. 引入jquery--%>
<script src="webjars/jquery/3.6.1/dist/jquery.min.js"></script>
<%--2. 引入boostrap的css样式--%>
<link rel="stylesheet" href="webjars/bootstrap/3.4.1/dist/css/bootstrap.min.css">
<%--3. 引入bootstrap的js库--%>
<script src="webjars/bootstrap/3.4.1/dist/js/bootstrap.min.js"></script>
<style>
    .container{
        margin-top: 300px;
        width: 500px;
        border: 1px solid cornflowerblue;
        border-radius: 20px;

    }
</style>
<body>
    <div class="container">
        <div class="panel-heading">
            <h3 class="panel-title">
                <h3>新增学生</h3>

            </h3>
        </div>
        <form class="form-horizontal" action="${pageContext.request.contextPath }/add" method="post">

            <div class="form-group">
                <label for="inputPassword" class="col-sm-2 control-label" >姓名</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="name" id="name" placeholder="" >
                </div>
            </div>
            <div class="form-group">
                <label for="inputPassword" class="col-sm-2 control-label">年龄</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="age" id="age" placeholder="">
                </div>
            </div>
            <div class="form-group">
                <label for="inputPassword" class="col-sm-2 control-label">爱好</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="habby" id="habby" placeholder="">
                </div>
            </div>
            <div class="form-group">
                <label for="inputPassword" class="col-sm-2 control-label">班级</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="classname" id="classname" placeholder="">
                </div>
            </div>
            <div class="form-group">
                <label for="inputPassword" class="col-sm-2 control-label">电话</label>
                <div class="col-sm-10">
                    <input type="text" class="form-control" name="phone" id="phone" placeholder="">
                </div>
            </div><div class="form-group">
            <label for="inputPassword" class="col-sm-2 control-label"></label>
            <div class="col-sm-10">

                 <input type="submit" class="btn btn-primary"></input>
            </div>
        </div>
        </form>
    </div>
</body>
</html>
